package com.lilili.ssh.book.model;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.lilili.ssh.base.BaseModel;
@Entity
@Table(name="BOOK")
public class Book extends BaseModel{
	
	private static final long serialVersionUID = 1L;
	/**
	 * 书名
	 */
	private String name;
	/**
	 * 作者
	 */
	private String author;
	/**
	 * 入库时间
	 */
	private Date regDate;
	/**
	 * 入库时间（用于查询）
	 */
	private Date regDateEnd;
	/**
	 * 状态（1为在库，-1为借出，0为不可用）
	 */
	private Integer statu;
	/**
	 * 备注
	 */
	private String note;
	@Column(name = "NAME",length = 100)
	public String getName() {
		return name;
	}
	@Column(name = "AUTHOR",length = 32)
	public String getAuthor() {
		return author;
	}
	@Column(name = "REGDATE")
	public Date getRegDate() {
		return regDate;
	}
	@Transient
	public Date getRegDateEnd() {
		return regDateEnd;
	}
	@Column(name = "STATU")
	public Integer getStatu() {
		return statu;
	}
	@Column(name = "NOTE",length = 200)
	public String getNote() {
		return note;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}
	public void setRegDateEnd(Date regDateEnd) {
		this.regDateEnd = regDateEnd;
	}
	public void setStatu(Integer statu) {
		this.statu = statu;
	}
	public void setNote(String note) {
		this.note = note;
	}

}
